import request from '../utils/request';
// // 引入mockjs模拟数据,
import Request from "../utils/mockRequest";

export function getHomeList() {
    return Request({
        url: '/home/list',
        method: 'get'
    });
}


// 登录接口
export function getLogin(data) {
  return request({
      url: '/admin/acl/index/login',
      method: 'post',
      data
  });
}
//对外暴露获取用户信息的函数
export function getInfo(token) {
    return request({
      url: '/admin/acl/index/info',
      method: 'get',
      params: { token }
    })
  }
  
  //对外暴露退出登录函数
  export function getLogout() {
    return request({
      url: '/admin/acl/index/logout',
      method: 'post'
    })
  }
  
  

